import Vue from 'vue'
import Router from 'vue-router'
import Layout from '@/pages/layout'

Vue.use(Router)
const routes = [{
    path: '/',
    name: 'Layout',
    component: Layout
}]
const router = new Router({
    scrollBehavior(to, from, savedPosition) {
        return {
            x: 0,
            y: 0
        }
    },
    routes
})
export default router